<template>
  <div>
    <ul>
      <li @click="getAllTagList">精选专区分类</li>
      <li @click="getHotList">热门推荐分类</li>
    </ul>
  </div>
</template>

<script>
import { getTagList, getHotList } from "../netWork/otherRequest/index.js";

export default {
  name: "PcmyTestapi",

  data() {
    return {

    };
  },

  mounted() {},

  methods: {
    // 精选专区
    getAllTagList: function() {
      // 请求接口
      console.log("精选专区");
      // 获取精选专区所有分类
      getTagList()
      .then((res) => {
        console.log(res);
      });
    },
    // 热门推荐
    getHotList() {
      console.log('热门推荐')
      getHotList()
      .then(res => {
        console.log(res)
      })
    },
  },
};
</script>

<style lang="less" scoped>
</style>